﻿using System.Runtime.Serialization;

namespace NaverOpenApiLibrary.Models
{
    [DataContract]
    public class UrlInfo
    {
        [DataMember(Name = "code")]
        public string ResultCode;
        [DataMember(Name = "message")]
        public string ResultMessage;
        [DataMember(Name = "result")]
        public UrlDetail Urls;
    }

    [DataContract]
    public class UrlDetail
    {
        [DataMember(Name = "hash")]
        public string Hash;
        [DataMember(Name = "url")]
        public string ShortUrl;
        [DataMember(Name = "orgUrl")]
        public string LongUrl;
    }
}
